<%@ page pageEncoding="UTF-8"%>
<%@ page import="java.util.*" %>
<%@ page import="com.hwhp.entity.*"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>菜单</title>
		<LINK href="<%=basePath%>css/milkwhite.css" type=TEXT/CSS
			rel=StyleSheet></LINK>
		<LINK href="<%=basePath%>css/htmilkwhite.css" type=TEXT/CSS
			rel=StyleSheet></LINK>
		<LINK href="<%=basePath%>js/tree/dtree/dtree.css" type=text/css
			rel=StyleSheet>
		<SCRIPT src="<%=basePath%>js/tree/dtree/dtree.js" type=text/javascript></SCRIPT>
	</head>
	<body style="MARGIN: 0px;" onunload="init()" id="body">
		<TABLE cellSpacing=10 width="100%" height="100%">
			<TBODY>
				<TR>
					<TD class=contenttab1 vAlign=top>
						<SCRIPT type=text/javascript>
						basepath='<%=basePath%>';
                        d = new dTree('d');
						<%
						List<Menu> list=(List<Menu> )request.getAttribute("mentList");
						if(list!=null&&list.size()>0){
						  for(Menu menu:list){
						%>
                  d.add('<%=menu.getId() %>','<%=menu.getParentid() %>','<%=menu.getName() %>','/chis/manager/menu!initMenuEidt.action?menuid=<%=menu.getId()%>','<%=menu.getName() %>','workspaceframe0');
                  <%
                         }
                       }
                  %>
                  document.write(d);
                  d.openAll();
                       </SCRIPT>
					</TD>
				</TR>
			</TBODY>
		</TABLE>
	</body>
</html>
